<template>
  <view class="centpage">
    <div class="waveLoading">
        <span style="--time:1">l</span>
        <span style="--time:2">o</span>
        <span style="--time:3">a</span>
        <span style="--time:4">d</span>
        <span style="--time:5">i</span>
        <span style="--time:6">n</span>
        <span style="--time:7">g</span>
        <span style="--time:8">.</span>
        <span style="--time:9">.</span>
        <span style="--time:10">.</span>
    </div>
  </view>
</template>

<script setup>
import './index.scss';
import Taro,  {useDidShow} from '@tarojs/taro';
useDidShow(() => {
  const userInfo = JSON.parse(Taro.getStorageSync('userInfo') || '{}')
  var userInfoSync = Taro.getStorageSync('userInfo')
  if(!userInfoSync) {
    Taro.reLaunch({
      url: '/pages/login/index'
    })
    return
  }
  setTimeout(() => {
    if (userInfo.c_role == 'MY0002') {
      Taro.reLaunch({
        url: '/pages/money/index'
      })
    } else {
      Taro.redirectTo({
        url: '/pages/index/index'
      })
    }
  }, 2 * 1000);
  

})



</script>

<style>
</style>